#ifndef SERVERBATTLE_H
#define SERVERBATTLE_H

// Libraries
#include "battle.h"

// Classes
class ServerBattleClass : public BattleClass 
{

	public:

		enum StateType {
			STATE_INPUT,
			STATE_RESOLVETURN,
			STATE_END,
		};

		ServerBattleClass();
		~ServerBattleClass();

		// Setup
		void StartBattle();

		// Objects
		int RemovePlayer(PlayerClass *TPlayer);

		// Input
		void HandleInput(PlayerClass *TPlayer, int TCommand, int TTarget);

		// Updates
		void Update(u32 TDeltaTime);

		// Resolve
		void ResolveTurn();
		void CheckEnd();

	private:

		void SendPacketToPlayers(PacketClass *TPacket);
		void SendSkillToPlayers(PlayerClass *TPlayer);

		u32 RoundTime;
};

#endif
